package com.lanou.dllo.findfood.application;

import android.app.Application;
import android.content.Context;

import com.lanou.dllo.findfood.crash.CrashHandler;

import cn.jpush.android.api.JPushInterface;


/**
 * Created by dllo on 15/10/22.
 */
public class BaseApplication extends Application {

    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        //初始化极光推送的包
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);

        //调用日志管理类
       CrashHandler crashHandler = CrashHandler.getInstance();
       crashHandler.init(getApplicationContext());
    }

    public static Context getContext() {

        return context;
    }
}
